package models;

import play.data.validation.Constraints.*;
import play.db.ebean.Model;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.List;

/**
 * Created by inhandui on 14/05/2014.
 */
@Entity
public class Curso extends Model {
    @Id
    Long id;

    @Required
    String nome;

    @Required
    String ementa;

    @Required
    String nivel;

    @Required
    Integer quantidadeDeAulas;

    @Required
    List<Aulas> aulas;

}
